package com.neo.rabbit.many;

import org.springframework.amqp.rabbit.annotation.RabbitHandler;
import org.springframework.amqp.rabbit.annotation.RabbitListener;
import org.springframework.stereotype.Component;

import lombok.extern.slf4j.Slf4j;

@Slf4j
@Component
@RabbitListener(queues = "neo")
public class NeoReceiver2
{
    @RabbitHandler
    public void process(String neo)
    {
        log.info("Receiver 2:  {}", neo);
    }
}
